package UIFree.effects.flames
{
	import UIFree.uif_component;
	import UIFree.uif_ecomponent;

	public class ef_flameBitmap extends ef_flame {
		private var _mask: ef_flame;
		public function ef_flameBitmap(parent:uif_component, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, atype:int=RECTFLAME, styleClass:String='') {
			super(parent, ax, ay, awidth, aheight, atype, styleClass);
			_mask = new ef_flame(this, 0, 0, width, height, atype, 'white');
		}
		
		override public function resize(newWidth: Number, newHeight: Number): uif_component {
			if (_mask) _mask.resize(newWidth, newHeight);
			super.resize(newWidth, newHeight);
		}
	}
}